import vueCookies from 'vue-cookies'
// 设置键名
const key = 'stu-token'
export function setToken(value) {
   vueCookies.set(key, value, '3d')
}

export function getToken() {
   return vueCookies.get(key)
}
// 操作的不需要返回值
export function removeToken() {
   vueCookies.remove(key)
}
export function hasToken() {
   return vueCookies.isKey(key)
}